import Mock from "mockjs";

// 图片与json数据格式默认对外暴露
import user from "./user.json";
import article from "./article.json";
import channels from "./channels.json";
import comments from "./comments.json";

Mock.mock("/mock/user", {
  code: 200,
  data: user,
});
Mock.mock("/mock/article", {
  code: 200,
  data: article,
});
Mock.mock("/mock/channels", {
  code: 200,
  data: channels,
});
Mock.mock("/mock/comments", {
  code: 200,
  data: comments,
});
